﻿using CPPEI.Coolzon.UI.Views;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace CPPEI.Coolzon.Designer.Views
{
    public partial class DesignView
    {
        /// <summary>
        /// 更新设计提示线的位置
        /// </summary>
        /// <param name="pointInCanvas"></param>
        /// <param name="canvas"></param>
        private void DesignLine_UpdatePosition(Point pointInCanvas, Canvas canvas)
        {
            double width = canvas.ActualWidth;
            double height = canvas.ActualHeight;

            //this._ctlDesignLineH.X1 = 0;
            //this._ctlDesignLineH.Y1 = pointInCanvas.Y;
            //this._ctlDesignLineH.X2 = width;
            //this._ctlDesignLineH.Y2 = pointInCanvas.Y;


            //this._ctlDesignLineV.X1 = pointInCanvas.X;
            //this._ctlDesignLineV.Y1 = 0;
            //this._ctlDesignLineV.X2 = pointInCanvas.X;
            //this._ctlDesignLineV.Y2 = height;
        }
    }
}
